package com.nuaa.ange.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @description
 * @author 玦离
 * @date 2022/12/30 20:53
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_message")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息 id
     */
    private Integer messageId;

    /**
     * 发出消息的id
     */
    private Integer fromUserId;

    /**
     * 接收消息的id
     */
    private Integer toUserId;

    /**
     * 消息内容
     */
    private String messageContent;

    /**
     * 未读0 已读1
     */
    private Boolean state;

    /**
     * 发表时间
     */
    private LocalDateTime createTime;


}
